<template>
  <div>
    <el-card shadow="always"
             class="login-container">
      <div slot="header"
           class="clearfix">
        <span>Login</span>
      </div>
      <el-form :model="loginForm"
               status-icon
               :rules="rules"
               ref="loginForm"
               label-width="40px">
        <el-form-item label="用户"
                      prop="user">
          <el-input v-model="loginForm.userId"
                    auto-complete="off"></el-input>
        </el-form-item>
        <el-form-item label="密码"
                      prop="pass">
          <el-input type="password"
                    v-model="loginForm.passWord"
                    auto-complete="off"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary"
                     style="width: 100%"
                     @click="submitForm('loginForm')">登 录</el-button>
          <div>请使用RTX登录</div>
        </el-form-item>
      </el-form>
    </el-card>
  </div>
</template>
<script>
export default {
  data() {
    return {
      loginForm: {
        userId: null,
        passWord: null
      },
      rules: {

      }
    }
  }
}
</script>

<style>
.login-container {
  width: 400px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -170px 0 0 -240px;
}
.login-disc {
  text-align: center;
  width: 100%;
  color: #ccc;
}
body {
  background: url(../../assets/images/login_bgx.gif);
}
</style>
